<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
	//get form data
	$account = $_POST["accountnumber"];
	$name = $_POST["firstname"];
	
	if($account){
	
	//connection
   
	include("connect.php");
		
	//insert into db
	$sql="DELETE FROM accountinfo WHERE accountnum='$account'";

	if (mysql_query($sql,$con))
  	{
  		echo "Record of Person ".$name." Deleted successfully. <a href='manageCustomer.php'>Click</a>  here to go back Manage Customer Menu.";
		
		//header("location:admin.php");
  	}
	else{
		echo "Sorry! Try again...";
		}
	
	}
	else 
	{
	echo "Please Fill All Fields to Modify this Customer!!!    <a href='modifyCustomer.php'>Click</a>  here to go back and try again.";
	}			
	?>
</body>
</html>
